package com.zjh.feign;

import com.zjh.dao.sysUserDao;
import com.zjh.utils.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("sysUser")
public interface FeignUser {

    @GetMapping("/sysusr/queryone")
    Response<sysUserDao> queryUsrByUsrname(@RequestParam("username") String username);

    @PostMapping("/sysusr/add")
    Response insertUsr(@RequestBody sysUserDao usr);

}
